//验证IP
var regIP = /^(0|1\d{0,2}|2[0-4]\d|25[0-5]|[1-9]\d{0,1})(\.(0|1\d{0,2}|2[0-4]\d|25[0-5]|[1-9]\d{0,1})){3}$/;
//验证网址URL
var regURL = /^[a-zA-z]+:\/\/[^\s]*$/;
//验证电子邮件Email
var regEmail = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;

//匹配中文下划线英文和数字
var regName = /^[\u4e00-\u9fa5_0-9a-zA-Z]{5,}$/; 

var regVCode = /^[a-zA-Z0-9]{4}$/;

var regPwd = /^[\w\W]{6,}$/;

/**
 * 验证IP
 * @param {Object} ip
 * @return {TypeName} 
 */
function checkIP(ip){
	return regIP.test(ip);
}

/**
 * 验证URL
 * @param {Object} ip
 * @return {TypeName} 
 */
function checkURL(ip){
	return regURL.test(ip);
}
